<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <object  id="LODOP_OB" classid="clsid:2105C259-1E0C-4534-8141-A753534CB4CA" width=0 height=0> 
        <embed id="LODOP_EM" type="application/x-print-lodop" width=0 height=0></embed>
    </object>
    <script src="http://www.lodop.net/demolist/LodopFuncs.js"></script>
</head>
<body>
    <script>
        var LODOP=getLodop(document.getElementById('LODOP_OB'),document.getElementById('LODOP_EM'));
        LODOP.PRINT_INIT('printImg');
       
        function initData(imgs){
            for(let i=0,length=imgs.length;i<length;i++){
                LODOP.NewPage();
                LODOP.ADD_PRINT_IMAGE(0,0,'100%','100%',"<img class='page' src='"+imgs[i]+"'/>");
                LODOP.SET_PRINT_STYLEA(0,'Stretch',2);;
            }
            LODOP.PREVIEW();
        }
    </script>
</body>
</html>